package com.hilaver.dzmis.basicinfo;

import java.sql.Blob;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class BiDZColor {
	
	private Integer id;
	private Integer oldId;
	private String isNew;
	private BiFactory biFactory;
	private BiFranceCustomer biFranceCustomer;
	private BiYarn biYarn;
	
	private String ctYarnMaterial;
	private String ctDyeing;
	private String ctFilsType;
	private String customerColorCode;
	private String ctColorFamily;
	private String dzColorCode;
	private Integer dzColorCodeIndex;
	private String ctColorType;
	private String pantoneNumber;
	private String realColor;
	private String supplierNumber;
	private String ctSeasonNumber;
	
	private Date launchDate;
	
	private Date targetDate1;
	private String ctSendBy1;
	private String sendByComment1;
	private Date shippingDate1;
	private Date receiptDate1;
	private Date comfirmDate1;
	private String isApprovied1;
	private Date approvedDate1;
	private String colorTestNumber1;
	private String factoryReference1;
	private Blob photo1;
	private String photo1Name;
	
	private Date targetDate2;
	private String ctSendBy2;
	private String sendByComment2;
	private Date shippingDate2;
	private Date receiptDate2;
	private Date comfirmDate2;
	private String isApprovied2;
	private Date approvedDate2;
	private String colorTestNumber2;
	private String factoryReference2;
	private Blob photo2;
	private String photo2Name;
	
	private String comment;
	
	private Float inStock;
	private Float onTheWayStock;
	private Float bookedStock;
	private Float outStock;
	private Float inOutSum;
	private Float stock;
	
	private BiDZColor biDZColor;
	private Set orderColorTests = new HashSet();
	private Set productDZColors = new HashSet();
	private Set biDZColorInouts = new HashSet();
		
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getOldId() {
		return oldId;
	}
	public void setOldId(Integer oldId) {
		this.oldId = oldId;
	}
	public String getIsNew() {
		return isNew;
	}
	public void setIsNew(String isNew) {
		this.isNew = isNew;
	}
	public BiFactory getBiFactory() {
		return biFactory;
	}
	public void setBiFactory(BiFactory biFactory) {
		this.biFactory = biFactory;
	}
	public BiFranceCustomer getBiFranceCustomer() {
		return biFranceCustomer;
	}
	public void setBiFranceCustomer(BiFranceCustomer biFranceCustomer) {
		this.biFranceCustomer = biFranceCustomer;
	}
	public BiYarn getBiYarn() {
		return biYarn;
	}
	public void setBiYarn(BiYarn biYarn) {
		this.biYarn = biYarn;
	}
	public String getCtYarnMaterial() {
		return ctYarnMaterial;
	}
	public void setCtYarnMaterial(String ctYarnMaterial) {
		this.ctYarnMaterial = ctYarnMaterial;
	}
	public String getCtDyeing() {
		return ctDyeing;
	}
	public void setCtDyeing(String ctDyeing) {
		this.ctDyeing = ctDyeing;
	}
	public String getCtFilsType() {
		return ctFilsType;
	}
	public void setCtFilsType(String ctFilsType) {
		this.ctFilsType = ctFilsType;
	}
	public String getCustomerColorCode() {
		return customerColorCode;
	}
	public void setCustomerColorCode(String customerColorCode) {
		this.customerColorCode = customerColorCode;
	}
	public String getCtColorFamily() {
		return ctColorFamily;
	}
	public void setCtColorFamily(String ctColorFamily) {
		this.ctColorFamily = ctColorFamily;
	}
	public String getDzColorCode() {
		return dzColorCode;
	}
	public void setDzColorCode(String dzColorCode) {
		this.dzColorCode = dzColorCode;
	}
	public Integer getDzColorCodeIndex() {
		return dzColorCodeIndex;
	}
	public void setDzColorCodeIndex(Integer dzColorCodeIndex) {
		this.dzColorCodeIndex = dzColorCodeIndex;
	}
	public String getCtColorType() {
		return ctColorType;
	}
	public void setCtColorType(String ctColorType) {
		this.ctColorType = ctColorType;
	}
	public String getPantoneNumber() {
		return pantoneNumber;
	}
	public void setPantoneNumber(String pantoneNumber) {
		this.pantoneNumber = pantoneNumber;
	}
	public String getRealColor() {
		return realColor;
	}
	public void setRealColor(String realColor) {
		this.realColor = realColor;
	}
	public String getSupplierNumber() {
		return supplierNumber;
	}
	public void setSupplierNumber(String supplierNumber) {
		this.supplierNumber = supplierNumber;
	}
	public String getCtSeasonNumber() {
		return ctSeasonNumber;
	}
	public void setCtSeasonNumber(String ctSeasonNumber) {
		this.ctSeasonNumber = ctSeasonNumber;
	}
	public Date getLaunchDate() {
		return launchDate;
	}
	public void setLaunchDate(Date launchDate) {
		this.launchDate = launchDate;
	}
	public Date getTargetDate1() {
		return targetDate1;
	}
	public void setTargetDate1(Date targetDate1) {
		this.targetDate1 = targetDate1;
	}
	public Date getShippingDate1() {
		return shippingDate1;
	}
	public void setShippingDate1(Date shippingDate1) {
		this.shippingDate1 = shippingDate1;
	}
	public Date getReceiptDate1() {
		return receiptDate1;
	}
	public void setReceiptDate1(Date receiptDate1) {
		this.receiptDate1 = receiptDate1;
	}
	public Date getComfirmDate1() {
		return comfirmDate1;
	}
	public void setComfirmDate1(Date comfirmDate1) {
		this.comfirmDate1 = comfirmDate1;
	}
	public String getIsApprovied1() {
		return isApprovied1;
	}
	public void setIsApprovied1(String isApprovied1) {
		this.isApprovied1 = isApprovied1;
	}
	public Date getApprovedDate1() {
		return approvedDate1;
	}
	public void setApprovedDate1(Date approvedDate1) {
		this.approvedDate1 = approvedDate1;
	}
	public String getColorTestNumber1() {
		return colorTestNumber1;
	}
	public void setColorTestNumber1(String colorTestNumber1) {
		this.colorTestNumber1 = colorTestNumber1;
	}
	public String getFactoryReference1() {
		return factoryReference1;
	}
	public void setFactoryReference1(String factoryReference1) {
		this.factoryReference1 = factoryReference1;
	}
	public Blob getPhoto1() {
		return photo1;
	}
	public void setPhoto1(Blob photo1) {
		this.photo1 = photo1;
	}
	public String getPhoto1Name() {
		return photo1Name;
	}
	public void setPhoto1Name(String photo1Name) {
		this.photo1Name = photo1Name;
	}
	public Date getTargetDate2() {
		return targetDate2;
	}
	public void setTargetDate2(Date targetDate2) {
		this.targetDate2 = targetDate2;
	}
	public Date getShippingDate2() {
		return shippingDate2;
	}
	public void setShippingDate2(Date shippingDate2) {
		this.shippingDate2 = shippingDate2;
	}
	public Date getReceiptDate2() {
		return receiptDate2;
	}
	public void setReceiptDate2(Date receiptDate2) {
		this.receiptDate2 = receiptDate2;
	}
	public Date getComfirmDate2() {
		return comfirmDate2;
	}
	public void setComfirmDate2(Date comfirmDate2) {
		this.comfirmDate2 = comfirmDate2;
	}
	public String getIsApprovied2() {
		return isApprovied2;
	}
	public void setIsApprovied2(String isApprovied2) {
		this.isApprovied2 = isApprovied2;
	}
	public Date getApprovedDate2() {
		return approvedDate2;
	}
	public void setApprovedDate2(Date approvedDate2) {
		this.approvedDate2 = approvedDate2;
	}
	public String getColorTestNumber2() {
		return colorTestNumber2;
	}
	public void setColorTestNumber2(String colorTestNumber2) {
		this.colorTestNumber2 = colorTestNumber2;
	}
	public String getFactoryReference2() {
		return factoryReference2;
	}
	public void setFactoryReference2(String factoryReference2) {
		this.factoryReference2 = factoryReference2;
	}
	public Blob getPhoto2() {
		return photo2;
	}
	public void setPhoto2(Blob photo2) {
		this.photo2 = photo2;
	}
	public String getPhoto2Name() {
		return photo2Name;
	}
	public void setPhoto2Name(String photo2Name) {
		this.photo2Name = photo2Name;
	}
	public String getCtSendBy1() {
		return ctSendBy1;
	}
	public void setCtSendBy1(String ctSendBy1) {
		this.ctSendBy1 = ctSendBy1;
	}
	public String getSendByComment1() {
		return sendByComment1;
	}
	public void setSendByComment1(String sendByComment1) {
		this.sendByComment1 = sendByComment1;
	}
	public String getCtSendBy2() {
		return ctSendBy2;
	}
	public void setCtSendBy2(String ctSendBy2) {
		this.ctSendBy2 = ctSendBy2;
	}
	public String getSendByComment2() {
		return sendByComment2;
	}
	public void setSendByComment2(String sendByComment2) {
		this.sendByComment2 = sendByComment2;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public BiDZColor getBiDZColor() {
		return biDZColor;
	}
	public void setBiDZColor(BiDZColor biDZColor) {
		this.biDZColor = biDZColor;
	}
	public Set getOrderColorTests() {
		return orderColorTests;
	}
	public void setOrderColorTests(Set orderColorTests) {
		this.orderColorTests = orderColorTests;
	}
	public Float getInStock() {
		return inStock;
	}
	public void setInStock(Float inStock) {
		this.inStock = inStock;
	}
	public Float getOnTheWayStock() {
		return onTheWayStock;
	}
	public void setOnTheWayStock(Float onTheWayStock) {
		this.onTheWayStock = onTheWayStock;
	}
	public Float getBookedStock() {
		return bookedStock;
	}
	public void setBookedStock(Float bookedStock) {
		this.bookedStock = bookedStock;
	}
	public Float getOutStock() {
		return outStock;
	}
	public void setOutStock(Float outStock) {
		this.outStock = outStock;
	}
	public Float getInOutSum() {
		return inOutSum;
	}
	public void setInOutSum(Float inOutSum) {
		this.inOutSum = inOutSum;
	}
	public Float getStock() {
		return (this.inStock==null?0:this.inStock) - (this.outStock==null?0:this.outStock) + (this.inOutSum==null?0:this.inOutSum);
	}
	public void setStock(Float stock) {
		this.stock = stock;
	}
	public Set getProductDZColors() {
		return productDZColors;
	}
	public void setProductDZColors(Set productDZColors) {
		this.productDZColors = productDZColors;
	}
	public Set getBiDZColorInouts() {
		return biDZColorInouts;
	}
	public void setBiDZColorInouts(Set biDZColorInouts) {
		this.biDZColorInouts = biDZColorInouts;
	}
	
	@Override
	public String toString() {
		return this.dzColorCode;
	}
}
